const fs = require('fs')
class ZLLPlugin {
    constructor(options) {
      console.log('zll-plugin')
      console.log(options)
    }

    apply(compiler) {
        const _this = this
        _this.destinationDir = compiler.options.output.path;
        (compiler.hooks ? compiler.hooks.afterEmit.tapAsync.bind(compiler.hooks.afterEmit, 'zll-webpack-plugin') : compiler.plugin.bind(compiler, 'afterEmit'))((compilation, callback) => {
            console.log('afteremit')
            callback()
        })
    }
    
}
module.exports = ZLLPlugin